<?
class Raca {

	public $data = array();
	protected $arma;

	function __construct (
		$nome, $nome_art, $registo_img, $portrait_img, $user_register,
		$size, $hp, $initiative, $speed,
		$armor,
		$attack,
		$saves,
		$abilities,
		$vision
	) {
		$this->data['nome']				= $nome;
		$this->data['raca_nome_art']	= $nome_art;
		$this->data['registo_img']		= $registo_img;
		$this->data['portrait_img']		= $portrait_img;
		$this->data['user_register']	= $user_register;
		
		$this->data['size']			= $size;
		$this->data['hp']			= $hp;
		$this->data['initiative']	= $initiative;
		$this->data['speed']		= $speed;
		
		$this->data['naturalArmor']		= $armor[0];
		$this->data['touchArmor']		= $armor[1];
		
		$this->data['baseAttack']		= $attack[0];
		$this->data['grapleAttack']		= $attack[1];
		
		$this->data['saveFortitude']	= $saves[0];
		$this->data['saveReflex']		= $saves[1];
		$this->data['saveWill']			= $saves[2];
		
		$this->data['str']			= $abilities[0];
		$this->data['dex']			= $abilities[1];
		$this->data['con']			= $abilities[2];
		$this->data['int']			= $abilities[3];
		$this->data['wis']			= $abilities[4];
		$this->data['car']			= $abilities[5];
		$this->data['vision']		= $vision;
		
	}
	
	public function getArma() {
		return $this->arma;
	}
	
	public function getValue($key) {
		return $this->data[$key];
	}
	
	public function toArray() {
		return $this->data;
	}
}
?>